package com.mutouren.common.entity;

public class Result {
	
	private int code;
	private String message;
	
	public Result() {
		this.code = ResultCode.INIT.value;
	}
	
	public Result(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return String.format("code:%s,message:%s", code, message);
	}
}
